#!/usr/bin/python
# Very Reduced Instruction Set Computer

# process status, describes the current status of the processor
class process_status(object):

	def __init__(self):
		self.universal_register = []
		self.program_counter_register = 0
		self.flag_register = ''

	# return a result value for the last arithmetical operation
	def flag_register_value(self, value):
		if value > 0: self.flag_register = 'POS'
		elif value == 0: self.flag_register = 'ZERO'
		else: self.flag_register = 'NEG'
		return self.flag_register
	 
